#include "EtatRobotEnChargeFaceObstacle.h"
#include "EtatRobotEnCharge.h"
#include "EtatRobotAVideFaceObstacle.h"

static EtatRobotEnChargeFaceObstacle* instance;

EtatRobotEnChargeFaceObstacle* EtatRobotEnChargeFaceObstacle::getInstance(Robot* r){

	if(instance == NULL)
		instance = new EtatRobotEnChargeFaceObstacle(r);
	return instance;
}

void EtatRobotEnChargeFaceObstacle::poser() {
	r->changerEtat((EtatRobot*)EtatRobotAVideFaceObstacle::getInstance(r));
}

int EtatRobotEnChargeFaceObstacle::peser() {
}

void EtatRobotEnChargeFaceObstacle::tourner() {
    r->changerEtat((EtatRobot*)EtatRobotEnCharge::getInstance(r));
}
